package com.test.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@Data
@AllArgsConstructor
@TableName("Account")
public class Account {

    @TableId(type = IdType.AUTO)
    Integer id;
    String username;
    String password;
    String role;
    String email;
    Date date;
    String avatar;

    public Account(String username, String password, String role, String email, Date date, String avatar) {
        this.username = username;
        this.password = password;
        this.role = role;
        this.email = email;
        this.date = date;
        this.avatar = avatar;
    }
}